package com.vc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.vc.model.dto.LoginDTO;
import com.vc.model.dto.RegisterDTO;
import com.vc.model.entity.UmsUser;
import com.vc.model.vo.ProfileVO;
import org.apache.ibatis.annotations.Param;

public interface UmsUserService extends IService<UmsUser> {

    // 注册功能
    UmsUser executeRegister(RegisterDTO dto);

    // 获取用户信息
    UmsUser getUserByUsername(String username);

    // 登录功能 生成JWT的token
    String executeLogin(LoginDTO dto);

    // 获取用户信息
    ProfileVO getUserProfile(String id);

}
